import request from '../request.js'

const Api_works = {
	//用户主页专辑列表/搜索
	albumAll: function(data) {
		return request({
			url: '/album',
			method: 'GET',
			data:data
		})
	},
	//用户主页作品列表
	albumWorks: function(data) {
		return request({
			url: '/album/works',
			method: 'GET',
			data:data
		})
	},
	//草稿箱/已铸造列表 
	work: function(data) {
		return request({
			url: '/work',
			method: 'GET',
			data:data
		})
	},
	//类型列表
	category: function(data) {
		return request({
			url: '/works/category',
			method: 'GET'
		})
	},
	//保存作品
	workStore: function(data) {
		return request({
			url: '/work/store',
			method: 'POST',
			data:data
		})
	},
	//铸造 
	workMint: function(data) {
		return request({
			url: '/work/mint',
			method: 'POST',
			data:data
		})
	},
	//删除作品
	workDelete: function(data) {
		return request({
			url: '/work/delete',
			method: 'POST',
			data:data
		})
	},
	//市场
	market: function(data) {
		return request({
			url: '/market',
			method: 'GET',
			data:data
		})
	},
	//市场详情
	marketShow: function(data) {
		return request({
			url: '/market/show',
			method: 'GET',
			data:data
		})
	},
	//挂卖列表
	marketSells: function(data) {
		return request({
			url: '/market/sells',
			method: 'GET',
			data:data
		})
	},
	//作品搜索
	searchWorks: function(data){
		return request({
			url: '/works',
			method: 'GET',
			data:data
		})
	},
	//用户搜索
	searchUser: function(data){
		return request({
			url: '/user/search',
			method: 'GET',
			data:data
		})
	},
	//盲盒市场
	boxMarket: function(data){
		return request({
			url: '/box/market',
			method: 'GET',
			data:data
		})
	},
	//盲盒市场详情
	boxMarketShow: function(data){
		return request({
			url: '/box/market/show',
			method: 'GET',
			data:data
		})
	},
	//盲盒寄售列表
	boxMarketSell: function(data){
		return request({
			url: '/box/market/sells',
			method: 'GET',
			data:data
		})
	},
	//优先购
	preList: function(data){
		return request({
			url: '/works/pre',
			method: 'GET',
			data:data
		})
	}
}


export default Api_works